package command;

import guimessage.Disconnect;
import controller.GUIController;

public class LogOut implements ICommand {

	protected GUIController guicontroller;
	
	public LogOut()
	{
		this.guicontroller = GUIController.getInstance();
	}

	public void execute()
	{
		guicontroller.messages.add( new Disconnect() );
		(new NextPanel()).goHome();
	}
}